﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DesignPatternsDemo
{
    class DateAdapter
    {
        private DateTime _date;

        public DateAdapter(DateTime date)
        {
            _date = date;
        }

        public string GetDateSepBySlash()
        {
            return string.Format("{0}/{1}/{2}", _date.Day, _date.Month, _date.Year);
        }

        public string GetDateSepByDash()
        {
            return string.Format("{0}-{1}-{2}", _date.Day, _date.Month, _date.Year);
        }
    }
}
